﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ETA.WebAPI.Models
{
    /// <summary>
    /// 通用返回结果类
    /// </summary>
    public class ApiResDTO
    {
        public ApiResDTO()
        {
            Result = ResultEnum.Fail;
        }
        /// <summary>
        /// 0 表示成功 1 表示失败
        /// </summary>
        public ResultEnum Result { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public object ResultDesc { get; set; }

    }

    public enum ResultEnum
    { 
        Success=0,
        Fail=1
    }
}